<template>
  <div class="dashboard-welcome">
    <div class="welcome-content">
      <h1 class="welcome-title">
        <span class="wave">👋</span>
        欢迎来到图书管理系统
      </h1>
      <div class="welcome-anim">
        <div class="circle"></div>
        <div class="circle"></div>
        <div class="circle"></div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "DashboardWelcome",
};
</script>

<style scoped>
.dashboard-welcome {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
  animation: fadeInBg 1.2s;
}
@keyframes fadeInBg {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.welcome-content {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 18px;
  padding: 48px 64px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  text-align: center;
  animation: fadeInUp 1s;
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.welcome-title {
  font-size: 2.6rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 18px;
  letter-spacing: 2px;
}
.wave {
  display: inline-block;
  animation: waveAnim 1.5s infinite;
  transform-origin: 70% 70%;
}
@keyframes waveAnim {
  0% {
    transform: rotate(0deg);
  }
  15% {
    transform: rotate(18deg);
  }
  30% {
    transform: rotate(-10deg);
  }
  40% {
    transform: rotate(12deg);
  }
  50% {
    transform: rotate(-8deg);
  }
  60% {
    transform: rotate(8deg);
  }
  100% {
    transform: rotate(0deg);
  }
}
.welcome-desc {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 32px;
}
.welcome-anim {
  display: flex;
  justify-content: center;
  gap: 16px;
}
.circle {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #89f7fe 0%, #66a6ff 100%);
  animation: bounce 1s infinite alternate;
}
.circle:nth-child(2) {
  animation-delay: 0.2s;
  background: linear-gradient(135deg, #fbc2eb 0%, #a6c1ee 100%);
}
.circle:nth-child(3) {
  animation-delay: 0.4s;
  background: linear-gradient(135deg, #fddb92 0%, #d1fdff 100%);
}
@keyframes bounce {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-18px);
  }
}
</style>